package com.originskyseed.platform.course.service;

import java.util.List;
import java.util.Map;

import com.originskyseed.platform.core.base.BasePage;
import com.originskyseed.platform.course.model.CourseRelateEvaluate;

/**
 * 课程关联评价表Service接口类（OSI_COURSE_RELATE_EVALUATE）
 * 
 * @author Tangwanghui
 */
public interface ICourseRelateEvaluateService {

	/**
	 * 删除记录
	 * 
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public int deleteByPrimaryKey(String id) throws Exception;

	/**
	 * 批量删除记录
	 * 
	 * @param ids
	 * @return
	 * @throws Exception
	 */
	public int deleteByPrimaryKeys(List<String> ids) throws Exception;

	/**
	 * 插入记录
	 * 
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public int insert(CourseRelateEvaluate record) throws Exception;

	/**
	 * 插入记录（仅非空值字段）
	 * 
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public int insertSelective(CourseRelateEvaluate record) throws Exception;

	/**
	 * 更新记录
	 * 
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public int updateByPrimaryKey(CourseRelateEvaluate record) throws Exception;

	/**
	 * 更新记录（仅非空值字段）
	 * 
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public int updateByPrimaryKeySelective(CourseRelateEvaluate record) throws Exception;

	/**
	 * 查询记录
	 * 
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public CourseRelateEvaluate selectByPrimaryKey(String id) throws Exception;

	/**
	 * 查询列表
	 * 
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public List<CourseRelateEvaluate> selectList(CourseRelateEvaluate record) throws Exception;

	/**
	 * 分页查询列表
	 * 
	 * @param params
	 * @param page
	 * @return
	 * @throws Exception
	 */
	public BasePage<CourseRelateEvaluate> selectListByPage(Map<String, Object> params, BasePage<CourseRelateEvaluate> page) throws Exception;

	/**
	 * 分页查询列表
	 *
	 * @param params
	 * @param page
	 * @return
	 * @throws Exception
	 */
	public BasePage<CourseRelateEvaluate> selectListRelUserByPage(Map<String, Object> params, BasePage<CourseRelateEvaluate> page) throws Exception;

	/**
	 * 新增评价信息
	 * 
	 * @param record
	 * @param taskCourseUserId
	 * @return
	 * @throws Exception
	 */
	public int insertCourseRelateEvaluate(CourseRelateEvaluate record, String taskCourseUserId) throws Exception;

}